//
//  noReadListViewCell.m
//  ChatDemo-UI2.0
//
//  Created by syun on 16/7/15.
//  Copyright © 2016年 syun. All rights reserved.
//

#import "noReadListViewCell.h"

@implementation noReadListViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIView *superView = self.contentView;
        
        _headView = [[XZHeaderImageView alloc] initWithFrame:CGRectMake(12,5, 34, 34)];
        
        [superView addSubview:_headView];
        
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_headView.frame.origin.x+_headView.frame.size.width +10, 15, 200, 16)];
        _nameLabel.font = [UIFont systemFontOfSize:14];
        _nameLabel.textColor=RGBACOLOR(59, 59, 59, 1);
        [superView addSubview:_nameLabel];
        
        _selectImage=[[UIImageView alloc]initWithFrame:CGRectMake(SCREENWIDTH-30, 13, 18, 18)];
        _selectImage.userInteractionEnabled=YES;
        [superView addSubview:_selectImage];
        
        _selectBtn=[[UIButton alloc]initWithFrame:CGRectMake(_nameLabel.frame.origin.x, 13, SCREENWIDTH-_nameLabel.frame.origin.x, 44)];
        [superView addSubview:_selectBtn];

        
        _line=[[UIView alloc]initWithFrame:CGRectMake(_nameLabel.frame.origin.x,43.5, SCREENWIDTH-_nameLabel.frame.origin.x, 0.5)];
        _line.backgroundColor=RGBACOLOR(199, 199, 204, 1);
        _line.hidden=YES;
        [superView addSubview:_line];
        
        _lLine=[[UIView alloc]initWithFrame:CGRectMake(0,43.5, SCREENWIDTH, 0.5)];
        _lLine.backgroundColor=RGBACOLOR(199, 199, 204, 1);
        _lLine.hidden=YES;
        [superView addSubview:_lLine];
        
//        tap=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(pushStudentInfoVC:)];
//        tap.delegate=self;
//        [_headView addGestureRecognizer:tap];
        
    }
    
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
//-(void)pushStudentInfoVC:(UIGestureRecognizer *)sender
//{
//    [_delegate pushStudentInfoVC:_index];
//}
@end
